<?php
$this->breadcrumbs = array(
    'MLM System',
    'Royalti' => array('index'),
    'Upload Data Angsuran',
);



?>
<?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/success.png">
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>
<?php if (Yii::app()->user->hasFlash('error')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        <?php echo Yii::app()->user->getFlash('error'); ?>
    </div>
<?php endif; ?>
<div class="flat_area grid_16">
    <h2>Upload Data Angsuran</h2>
</div>
<div class="box grid_16 round_all">
    <h2 class="box_head grad_colour">&nbsp;</h2>
    <a href="#" class="grabber">&nbsp;</a>
    <a href="#" class="toggle">&nbsp;</a>
    <div class="toggle_container">
        <?php
        echo CHtml::beginForm( '', 'post', array ("enctype"=>"multipart/form-data" ));
        ?>
        <div class="block">
            <div class="alert alert_grey">
                <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
                Pastikan file yang diupload menggunakan extensi excel (.xls) dengan format 3 kolom
            </div>

            <label for="data_upload" class="required">File Excel <span class="required">*</span></label>
            <input size="20" maxlength="25" name="file_excel" id="file_excel" type="file">
            <button name="upload" class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span>Upload</span></button>

        </div>

        <?php echo CHtml::endForm(); ?>

        <!-- form -->
    </div>
</div>